CXX=g++
SRC=	src/event.cpp \
	src/menu.cpp \
	src/main.cpp
	#src/renderManager.cpp
SFML_FLAGS= -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
CXXFLAGS= -W -Wall -Wextra $(SFML_FLAGS)
NAME=violated
OBJ = $(SRC:.cpp=.o)

all:$(OBJ)
	$(CXX) -o $(NAME) $(OBJ) $(CXXFLAGS)
	./$(NAME)
compile:$(OBJ)
	$(CXX) -o $(NAME) $(OBJ) $(CXXFLAGS)
re: clean all
rec:
	gccrec g++ -o $(NAME) $(SRC) $(CXXFLAGS)
debug:
	$(CXX) -g -ggdb3 -o $(NAME) $(SRC) $(CXXFLAGS)
clean:
	rm -f $(OBJ) $(NAME)
valgrind:debug
	 valgrind  --suppressions=fglrx.supp ./$(NAME)